package com.happy016.persist.user;


import com.happy016.entity.user.User;
import com.happy016.mapper.user.UserMapper;
import com.happy016.persist.base.impl.BaseDaoImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 *
 * @author Linyb
 * create on 2017/8/4 10:22
 */
@Repository
public class UserDaoImpl extends BaseDaoImpl<User,Integer> implements IUserDao {

    @Autowired
    private UserMapper userMapper;
    @Override
    public List<User> findSelf2(User user) {
        return userMapper.findSelf2(user);
    }

    @Override
    public List<User> findSelf1(int status) {
        return userMapper.findSelf1(status);
    }
}
